/**
 * 定义一个 focus 指令
 */
const focus = {
  mounted(el, binding, vnode) {
    // el 表示，使用该指令的元素的DOM对象
    console.log("mounted", el);
    console.log("binding", binding);
    console.log("vnode", vnode);
    el.focus();
  },

  updated(el, binding) {
    console.log("updated binding", binding);
  },
};

// 导出该 focus
export default focus;
